﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000F8 RID: 248
	public class TPseudoExprStmt : TCustomSqlStatement
	{
		// Token: 0x0600084B RID: 2123 RVA: 0x00301D5F File Offset: 0x002FFF5F
		public TExpression getExpr()
		{
			return this.expr;
		}

		// Token: 0x0600084C RID: 2124 RVA: 0x00301D67 File Offset: 0x002FFF67
		public TPseudoExprStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstSnowflakePseudoExprStmt;
		}

		// Token: 0x0600084D RID: 2125 RVA: 0x00301D7B File Offset: 0x002FFF7B
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.expr = (TExpression)this.rootNode;
			return 0;
		}

		// Token: 0x0600084E RID: 2126 RVA: 0x00301DA1 File Offset: 0x002FFFA1
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600084F RID: 2127 RVA: 0x00301DB1 File Offset: 0x002FFFB1
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001208 RID: 4616
		private TExpression expr;
	}
}
